﻿@using Mulala.Cavan.Presentation.Mvc.Controller
@using Mulala.Cavan.Core.Helper
@using Mulala.Cavan.Domain.MainBoundedContext.Setting
@model Mulala.Cavan.Presentation.Mvc.ViewModel.INanniesViewModel
<h1>
    <a href="#" style="color: #000;">金牌保姆</a><span>@Html.ActionLink("更多保姆>>", ActionConst.LIST, ControllerConst.NANNY)</span></h1>
<div class="gongsi">
    <ul>
        @{
            var avatar = string.Empty;
        }
        @foreach (var nanny in @Model.Nannies)
        {
            avatar = nanny.Avatar + "_100@100.jpg";
            <li><a href="@nanny.DetailUrl">
                <img src="@avatar" alt="保姆" /></a><p>
                    <a href="@nanny.DetailUrl">@nanny.Item.Name</a>&nbsp;@nanny.Age&nbsp;@nanny.Area</p>
                <p>@StringHelper.Truncate(nanny.MainSkill, 8)</p>
@*                @{
            if (nanny.MainSkill.Length > 8)
            {
                    <p>@StringHelper.Truncate(nanny.MainSkill, 8, 8)</p>
            }
                }*@
            </li>
        }
    </ul>
</div>
